obj-m += ramblockdev.o

ifdef KPATH
kpath = $(KPATH)
else
kpath = ../../kernel
endif

flags = CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64

all:
	make $(flags) -C $(kpath) M=$(PWD) modules
   
clean:
	rm *.ko *.mod.c *.bak .tmp_versions modules.order Module.symvers *.c.bak* *.o testmymodule \.*.cmd -rf 
	
 
